<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VR Sketch Design: Y:/Coding/Unity/VRDesignProject/Assets/Scripts/PanelMenuController.cs 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">VR Sketch Design
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">VR Project</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b93ca4f67e5c4f3d8967bcc66a8efe61.html">Y:</a></li><li class="navelem"><a class="el" href="dir_657949dcc09204b591ba08b2dd60005a.html">Coding</a></li><li class="navelem"><a class="el" href="dir_9e3bf1a2f1e8bb1f1076cb3a500c0924.html">Unity</a></li><li class="navelem"><a class="el" href="dir_d92c12ce3d70d23921038a5d2ecff28d.html">VRDesignProject</a></li><li class="navelem"><a class="el" href="dir_bbf63476caace77856cc7cbaedc98ba5.html">Assets</a></li><li class="navelem"><a class="el" href="dir_a6ab9145be13875259d1d9e44e1e8835.html">Scripts</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">PanelMenuController.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_panel_menu_controller_8cs.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="keyword">using</span> System.Collections;</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="keyword">using</span> System.Collections.Generic;</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keyword">using</span> UnityEngine;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="keyword">using</span> VRTK;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160; </div>
<div class="line"><a name="l00006"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html">    6</a></span>&#160;<span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="class_panel_menu_controller.html">PanelMenuController</a> : MonoBehaviour</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;{</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;        [Tooltip(<span class="stringliteral">&quot;The GameObject the panel should rotate towards, which is the Camera (eye) by default.&quot;</span>)]</div>
<div class="line"><a name="l00011"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#aed927f6ed2f6f8cfd19b63cde474d299">   11</a></span>&#160;        <span class="keyword">public</span> GameObject <a class="code" href="class_panel_menu_controller.html#aed927f6ed2f6f8cfd19b63cde474d299">rotateTowards</a>;</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;        [Tooltip(<span class="stringliteral">&quot;The scale multiplier, which relates to the scale of parent interactable object.&quot;</span>)]</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#afba7315331ba54e32662dacda8afa961">   13</a></span>&#160;        <span class="keyword">public</span> <span class="keywordtype">float</span> <a class="code" href="class_panel_menu_controller.html#afba7315331ba54e32662dacda8afa961">zoomScaleMultiplier</a> = 1f;</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;        [Tooltip(<span class="stringliteral">&quot;The top PanelMenuItemController, which is triggered by pressing up on the controller touchpad.&quot;</span>)]</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a65f2cdb685dc61a55caf8cad11e24706">   15</a></span>&#160;        <span class="keyword">public</span> VRTK_PanelMenuItemController <a class="code" href="class_panel_menu_controller.html#a65f2cdb685dc61a55caf8cad11e24706">topPanelMenuItemController</a>;</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;        <span class="comment">// Relates to scale of canvas on panel items.</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a38269c408a0849330925ebdd40d1e240">   18</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="class_panel_menu_controller.html#a38269c408a0849330925ebdd40d1e240">CanvasScaleSize</a> = 0.001f;</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        <span class="comment">// Swipe sensitivity / detection.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#afb14d2676a1ce766d55f24204a966fb8">   21</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="class_panel_menu_controller.html#afb14d2676a1ce766d55f24204a966fb8">AngleTolerance</a> = 30f;</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#aa2a458734f7b687b8912aa7b277e4c09">   22</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="class_panel_menu_controller.html#aa2a458734f7b687b8912aa7b277e4c09">SwipeMinDist</a> = 0.2f;</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a607e57996e6a88ddac7a5da85696f456">   23</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">const</span> <span class="keywordtype">float</span> <a class="code" href="class_panel_menu_controller.html#a607e57996e6a88ddac7a5da85696f456">SwipeMinVelocity</a> = 4.0f;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">   25</a></span>&#160;        <span class="keyword">protected</span> VRTK_ControllerEvents <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>;</div>
<div class="line"><a name="l00026"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">   26</a></span>&#160;        <span class="keyword">protected</span> VRTK_PanelMenuItemController <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">   27</a></span>&#160;        <span class="keyword">protected</span> GameObject <a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ae3ab100e8a2908571a566cdb500b7203">   28</a></span>&#160;        <span class="keyword">protected</span> GameObject <a class="code" href="class_panel_menu_controller.html#ae3ab100e8a2908571a566cdb500b7203">canvasObject</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a49cfb69e35ce7f5326e29bf6a712daae">   29</a></span>&#160;        <span class="keyword">protected</span> readonly Vector2 <a class="code" href="class_panel_menu_controller.html#a49cfb69e35ce7f5326e29bf6a712daae">xAxis</a> = <span class="keyword">new</span> Vector2(1, 0);</div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ad87b6d13158a3024d1e24c574f2c2dbb">   30</a></span>&#160;        <span class="keyword">protected</span> readonly Vector2 <a class="code" href="class_panel_menu_controller.html#ad87b6d13158a3024d1e24c574f2c2dbb">yAxis</a> = <span class="keyword">new</span> Vector2(0, 1);</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a1abe6fbae3a2e179bc2521068edeb0ac">   31</a></span>&#160;        <span class="keyword">protected</span> Vector2 <a class="code" href="class_panel_menu_controller.html#a1abe6fbae3a2e179bc2521068edeb0ac">touchStartPosition</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a6e296ceba6355cee7df9ce151e22a309">   32</a></span>&#160;        <span class="keyword">protected</span> Vector2 <a class="code" href="class_panel_menu_controller.html#a6e296ceba6355cee7df9ce151e22a309">touchEndPosition</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ac49cead88826e04e50b4dbb87c84b9c5">   33</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">float</span> <a class="code" href="class_panel_menu_controller.html#ac49cead88826e04e50b4dbb87c84b9c5">touchStartTime</a>;</div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a49e1e27760f55be8778e29e7fc69e74a">   34</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">float</span> <a class="code" href="class_panel_menu_controller.html#a49e1e27760f55be8778e29e7fc69e74a">currentAngle</a>;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ad3d58541f3016b1da5c4c51cf12f5585">   35</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">bool</span> <a class="code" href="class_panel_menu_controller.html#ad3d58541f3016b1da5c4c51cf12f5585">isTrackingSwipe</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a05ae450bba14864f0a0a539316fd2ba8">   36</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">bool</span> <a class="code" href="class_panel_menu_controller.html#a05ae450bba14864f0a0a539316fd2ba8">isPendingSwipeCheck</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a854f45e71ff4b35540c5e2963df5e23a">   37</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">bool</span> <a class="code" href="class_panel_menu_controller.html#a854f45e71ff4b35540c5e2963df5e23a">isGrabbed</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">   38</a></span>&#160;        <span class="keyword">protected</span> <span class="keywordtype">bool</span> <a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a6b1f79dcbb7634f2072ae3cfea78bfb3">   39</a></span>&#160;        <span class="keyword">protected</span> Coroutine <a class="code" href="class_panel_menu_controller.html#a6b1f79dcbb7634f2072ae3cfea78bfb3">tweenMenuScaleRoutine</a>;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ad28e4591512ba9d9b0b8209ef7e3e3c9">   44</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#ad28e4591512ba9d9b0b8209ef7e3e3c9">ToggleMenu</a>()</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        {</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a>)</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;            {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a289ebce78a04bcf83f5a6cedc6542ae9">HideMenu</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;            }</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            {</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;                <a class="code" href="class_panel_menu_controller.html#ab8fd549a3cb569ca4c970d6abfbb33bd">ShowMenu</a>();</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ab8fd549a3cb569ca4c970d6abfbb33bd">   59</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#ab8fd549a3cb569ca4c970d6abfbb33bd">ShowMenu</a>()</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        {</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;            <span class="keywordflow">if</span> (!<a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a>)</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            {</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a21e3e5580b4f87d2e4213b54b6334260">InitTweenMenuScale</a>(<a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a>);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;            }</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        }</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a289ebce78a04bcf83f5a6cedc6542ae9">   72</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a289ebce78a04bcf83f5a6cedc6542ae9">HideMenu</a>(<span class="keywordtype">bool</span> force)</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a> &amp;&amp; force)</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            {</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a21e3e5580b4f87d2e4213b54b6334260">InitTweenMenuScale</a>(<a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a>);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;            }</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;        }</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a0a485010c19f62ac5f467db52d979933">   84</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a0a485010c19f62ac5f467db52d979933">HideMenuImmediate</a>()</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> != <span class="keyword">null</span> &amp;&amp; <a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a>)</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;            {</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a10c3beabee8f61691b11b59273f946a5">HandlePanelMenuItemControllerVisibility</a>(<a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a>);</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            }</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            transform.localScale = Vector3.zero;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ae3ab100e8a2908571a566cdb500b7203">canvasObject</a>.transform.localScale = Vector3.zero;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        }</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160; </div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#add5762c5009f401efa1704e842f35eaa">   95</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#add5762c5009f401efa1704e842f35eaa">Awake</a>()</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        {</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a06c06859bf93ce6918ffa0cfef68bb3c">Initialize</a>();</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            VRTK_SDKManager.AttemptAddBehaviourToToggleOnLoadedSetupChange(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        }</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#af5d55e46e078d51f731d215e4cd31f1f">  101</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#af5d55e46e078d51f731d215e4cd31f1f">Start</a>()</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        {</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a> = gameObject.transform.parent.gameObject;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a> == <span class="keyword">null</span> || <a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>.GetComponent&lt;VRTK_InteractableObject&gt;() == <span class="keyword">null</span>)</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            {</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                VRTK_Logger.Warn(VRTK_Logger.GetCommonMessage(VRTK_Logger.CommonMessageKeys.REQUIRED_COMPONENT_MISSING_FROM_GAMEOBJECT, <span class="stringliteral">&quot;PanelMenuController&quot;</span>, <span class="stringliteral">&quot;VRTK_InteractableObject&quot;</span>, <span class="stringliteral">&quot;a parent&quot;</span>));</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;                <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            }</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>.GetComponent&lt;VRTK_InteractableObject&gt;().InteractableObjectGrabbed += <span class="keyword">new</span> InteractableObjectEventHandler(<a class="code" href="class_panel_menu_controller.html#ad9db8f5e9be93fa1d8be6ba6f70c7815">DoInteractableObjectIsGrabbed</a>);</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>.GetComponent&lt;VRTK_InteractableObject&gt;().InteractableObjectUngrabbed += <span class="keyword">new</span> InteractableObjectEventHandler(<a class="code" href="class_panel_menu_controller.html#ab9b4d24481ed0ebaaffb5395d7406ebd">DoInteractableObjectIsUngrabbed</a>);</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ae3ab100e8a2908571a566cdb500b7203">canvasObject</a> = gameObject.transform.GetChild(0).gameObject;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#ae3ab100e8a2908571a566cdb500b7203">canvasObject</a> == <span class="keyword">null</span> || <a class="code" href="class_panel_menu_controller.html#ae3ab100e8a2908571a566cdb500b7203">canvasObject</a>.GetComponent&lt;Canvas&gt;() == <span class="keyword">null</span>)</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;            {</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;                VRTK_Logger.Warn(VRTK_Logger.GetCommonMessage(VRTK_Logger.CommonMessageKeys.REQUIRED_COMPONENT_MISSING_FROM_GAMEOBJECT, <span class="stringliteral">&quot;PanelMenuController&quot;</span>, <span class="stringliteral">&quot;Canvas&quot;</span>, <span class="stringliteral">&quot;a child&quot;</span>));</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;            }</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        }</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a157735605c51fb1011f3648b3f926a98">  120</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a157735605c51fb1011f3648b3f926a98">OnDestroy</a>()</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        {</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            VRTK_SDKManager.AttemptRemoveBehaviourToToggleOnLoadedSetupChange(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        }</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a0320c1c2dcd726a87c22563d86a11ccf">  125</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a0320c1c2dcd726a87c22563d86a11ccf">Update</a>()</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        {</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;            {</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#aed927f6ed2f6f8cfd19b63cde474d299">rotateTowards</a> == <span class="keyword">null</span>)</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;                {</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                    <a class="code" href="class_panel_menu_controller.html#aed927f6ed2f6f8cfd19b63cde474d299">rotateTowards</a> = VRTK_DeviceFinder.HeadsetTransform().gameObject;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#aed927f6ed2f6f8cfd19b63cde474d299">rotateTowards</a> == <span class="keyword">null</span>)</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;                    {</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                        VRTK_Logger.Warn(VRTK_Logger.GetCommonMessage(VRTK_Logger.CommonMessageKeys.COULD_NOT_FIND_OBJECT_FOR_ACTION, <span class="stringliteral">&quot;PanelMenuController&quot;</span>, <span class="stringliteral">&quot;an object&quot;</span>, <span class="stringliteral">&quot;rotate towards&quot;</span>));</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;                    }</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;                }</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160; </div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a>)</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;                {</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#aed927f6ed2f6f8cfd19b63cde474d299">rotateTowards</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;                    {</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;                        transform.rotation = Quaternion.LookRotation((<a class="code" href="class_panel_menu_controller.html#aed927f6ed2f6f8cfd19b63cde474d299">rotateTowards</a>.transform.position - transform.position) * -1, Vector3.up);</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;                    }</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;                }</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160; </div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a05ae450bba14864f0a0a539316fd2ba8">isPendingSwipeCheck</a>)</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;                    <a class="code" href="class_panel_menu_controller.html#ab65289f66e52deef038d373dddb9b239">CalculateSwipeAction</a>();</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;                }</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;            }</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        }</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a06c06859bf93ce6918ffa0cfef68bb3c">  153</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a06c06859bf93ce6918ffa0cfef68bb3c">Initialize</a>()</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        {</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;            <span class="keywordflow">if</span> (Application.isPlaying)</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;            {</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;                <span class="keywordflow">if</span> (!<a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a>)</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                {</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;                    transform.localScale = Vector3.zero;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                }</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;            }</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a> == <span class="keyword">null</span>)</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;            {</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                transform.localPosition = <span class="keyword">new</span> Vector3(transform.localPosition.x, transform.localPosition.y, transform.localPosition.z);</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;                <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a> = GetComponentInParent&lt;VRTK_ControllerEvents&gt;();</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            }</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        }</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a98881472d39ee683eb573358d68119a0">  170</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a98881472d39ee683eb573358d68119a0">BindControllerEvents</a>()</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        {</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>.TouchpadPressed += <span class="keyword">new</span> ControllerInteractionEventHandler(<a class="code" href="class_panel_menu_controller.html#a5de1501c6a368fb64309f251af5a8123">DoTouchpadPress</a>);</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>.TouchpadTouchStart += <span class="keyword">new</span> ControllerInteractionEventHandler(<a class="code" href="class_panel_menu_controller.html#ada7144822c4d73ec792b22c274cb3088">DoTouchpadTouched</a>);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>.TouchpadTouchEnd += <span class="keyword">new</span> ControllerInteractionEventHandler(<a class="code" href="class_panel_menu_controller.html#a008e386adb01e0db819fafbad17ae15e">DoTouchpadUntouched</a>);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>.TouchpadAxisChanged += <span class="keyword">new</span> ControllerInteractionEventHandler(<a class="code" href="class_panel_menu_controller.html#ae4fa9490358987743c2ef2de15bd6c67">DoTouchpadAxisChanged</a>);</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>.TriggerPressed += <span class="keyword">new</span> ControllerInteractionEventHandler(<a class="code" href="class_panel_menu_controller.html#a3cee8a2e5d975558f5822a0d08bc1d9c">DoTriggerPressed</a>);</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        }</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a1a04d799a0b139892461badd715d3dab">  179</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a1a04d799a0b139892461badd715d3dab">UnbindControllerEvents</a>()</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        {</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>.TouchpadPressed -= <span class="keyword">new</span> ControllerInteractionEventHandler(<a class="code" href="class_panel_menu_controller.html#a5de1501c6a368fb64309f251af5a8123">DoTouchpadPress</a>);</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>.TouchpadTouchStart -= <span class="keyword">new</span> ControllerInteractionEventHandler(<a class="code" href="class_panel_menu_controller.html#ada7144822c4d73ec792b22c274cb3088">DoTouchpadTouched</a>);</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>.TouchpadTouchEnd -= <span class="keyword">new</span> ControllerInteractionEventHandler(<a class="code" href="class_panel_menu_controller.html#a008e386adb01e0db819fafbad17ae15e">DoTouchpadUntouched</a>);</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>.TouchpadAxisChanged -= <span class="keyword">new</span> ControllerInteractionEventHandler(<a class="code" href="class_panel_menu_controller.html#ae4fa9490358987743c2ef2de15bd6c67">DoTouchpadAxisChanged</a>);</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a>.TriggerPressed -= <span class="keyword">new</span> ControllerInteractionEventHandler(<a class="code" href="class_panel_menu_controller.html#a3cee8a2e5d975558f5822a0d08bc1d9c">DoTriggerPressed</a>);</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        }</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a10c3beabee8f61691b11b59273f946a5">  188</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a10c3beabee8f61691b11b59273f946a5">HandlePanelMenuItemControllerVisibility</a>(VRTK_PanelMenuItemController targetPanelItemController)</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a>)</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;            {</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> == targetPanelItemController)</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;                {</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;                    targetPanelItemController.Hide(<a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>);</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                    <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> = <span class="keyword">null</span>;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;                    <a class="code" href="class_panel_menu_controller.html#a289ebce78a04bcf83f5a6cedc6542ae9">HideMenu</a>(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                }</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;                {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;                    <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a>.Hide(<a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>);</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;                    <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> = targetPanelItemController;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;                }</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;            }</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;            {</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;                <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> = targetPanelItemController;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;            }</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160; </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;            {</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;                <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a>.Show(<a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>);</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;                <a class="code" href="class_panel_menu_controller.html#ab8fd549a3cb569ca4c970d6abfbb33bd">ShowMenu</a>();</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;            }</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        }</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a21e3e5580b4f87d2e4213b54b6334260">  216</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a21e3e5580b4f87d2e4213b54b6334260">InitTweenMenuScale</a>(<span class="keywordtype">bool</span> show)</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        {</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a6b1f79dcbb7634f2072ae3cfea78bfb3">tweenMenuScaleRoutine</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;            {</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;                StopCoroutine(<a class="code" href="class_panel_menu_controller.html#a6b1f79dcbb7634f2072ae3cfea78bfb3">tweenMenuScaleRoutine</a>);</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;            }</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            <span class="keywordflow">if</span> (enabled)</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            {</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a6b1f79dcbb7634f2072ae3cfea78bfb3">tweenMenuScaleRoutine</a> = StartCoroutine(<a class="code" href="class_panel_menu_controller.html#a8f4101f95393f2ad29844619e5de1847">TweenMenuScale</a>(show));</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;            }</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        }</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160; </div>
<div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a8f4101f95393f2ad29844619e5de1847">  228</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> IEnumerator <a class="code" href="class_panel_menu_controller.html#a8f4101f95393f2ad29844619e5de1847">TweenMenuScale</a>(<span class="keywordtype">bool</span> show)</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        {</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;            <span class="keywordtype">float</span> targetScale = 0;</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            Vector3 direction = -1 * Vector3.one;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;            <span class="keywordflow">if</span> (show)</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;            {</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;                <a class="code" href="class_panel_menu_controller.html#ae3ab100e8a2908571a566cdb500b7203">canvasObject</a>.transform.localScale = <span class="keyword">new</span> Vector3(<a class="code" href="class_panel_menu_controller.html#a38269c408a0849330925ebdd40d1e240">CanvasScaleSize</a>, <a class="code" href="class_panel_menu_controller.html#a38269c408a0849330925ebdd40d1e240">CanvasScaleSize</a>, <a class="code" href="class_panel_menu_controller.html#a38269c408a0849330925ebdd40d1e240">CanvasScaleSize</a>);</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                targetScale = <a class="code" href="class_panel_menu_controller.html#afba7315331ba54e32662dacda8afa961">zoomScaleMultiplier</a>;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                direction = Vector3.one;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;            }</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;            <span class="keywordtype">int</span> i = 0;</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;            <span class="keywordflow">while</span> (i &lt; 250 &amp;&amp; ((show &amp;&amp; transform.localScale.x &lt; targetScale) || (!show &amp;&amp; transform.localScale.x &gt; targetScale)))</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;            {</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;                transform.localScale += direction * Time.deltaTime * 4f * <a class="code" href="class_panel_menu_controller.html#afba7315331ba54e32662dacda8afa961">zoomScaleMultiplier</a>;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;                yield <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;                i++;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;            }</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;            transform.localScale = direction * targetScale;</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160; </div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;            <span class="keywordflow">if</span> (!show)</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;            {</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;                <a class="code" href="class_panel_menu_controller.html#ae3ab100e8a2908571a566cdb500b7203">canvasObject</a>.transform.localScale = Vector3.zero;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;            }</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        }</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160; </div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ad9db8f5e9be93fa1d8be6ba6f70c7815">  253</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#ad9db8f5e9be93fa1d8be6ba6f70c7815">DoInteractableObjectIsGrabbed</a>(<span class="keywordtype">object</span> sender, InteractableObjectEventArgs e)</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        {</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a> = e.interactingObject.GetComponentInParent&lt;VRTK_ControllerEvents&gt;();</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;            {</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a98881472d39ee683eb573358d68119a0">BindControllerEvents</a>();</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;            }</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a854f45e71ff4b35540c5e2963df5e23a">isGrabbed</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;        }</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160; </div>
<div class="line"><a name="l00263"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ab9b4d24481ed0ebaaffb5395d7406ebd">  263</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#ab9b4d24481ed0ebaaffb5395d7406ebd">DoInteractableObjectIsUngrabbed</a>(<span class="keywordtype">object</span> sender, InteractableObjectEventArgs e)</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;        {</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a854f45e71ff4b35540c5e2963df5e23a">isGrabbed</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">isShown</a>)</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;            {</div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a0a485010c19f62ac5f467db52d979933">HideMenuImmediate</a>();</div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;            }</div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160; </div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;            {</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a1a04d799a0b139892461badd715d3dab">UnbindControllerEvents</a>();</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;                <a class="code" href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">controllerEvents</a> = <span class="keyword">null</span>;</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;            }</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;        }</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160; </div>
<div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a5de1501c6a368fb64309f251af5a8123">  278</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a5de1501c6a368fb64309f251af5a8123">DoTouchpadPress</a>(<span class="keywordtype">object</span> sender, ControllerInteractionEventArgs e)</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        {</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;            </div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;            </div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a65f2cdb685dc61a55caf8cad11e24706">topPanelMenuItemController</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;            {</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a10c3beabee8f61691b11b59273f946a5">HandlePanelMenuItemControllerVisibility</a>(<a class="code" href="class_panel_menu_controller.html#a65f2cdb685dc61a55caf8cad11e24706">topPanelMenuItemController</a>);</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;            }</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        }</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160; </div>
<div class="line"><a name="l00288"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ada7144822c4d73ec792b22c274cb3088">  288</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#ada7144822c4d73ec792b22c274cb3088">DoTouchpadTouched</a>(<span class="keywordtype">object</span> sender, ControllerInteractionEventArgs e)</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        {</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a1abe6fbae3a2e179bc2521068edeb0ac">touchStartPosition</a> = <span class="keyword">new</span> Vector2(e.touchpadAxis.x, e.touchpadAxis.y);</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ac49cead88826e04e50b4dbb87c84b9c5">touchStartTime</a> = Time.time;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ad3d58541f3016b1da5c4c51cf12f5585">isTrackingSwipe</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;        }</div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160; </div>
<div class="line"><a name="l00295"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a008e386adb01e0db819fafbad17ae15e">  295</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a008e386adb01e0db819fafbad17ae15e">DoTouchpadUntouched</a>(<span class="keywordtype">object</span> sender, ControllerInteractionEventArgs e)</div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;        {</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;            <a class="code" href="class_panel_menu_controller.html#ad3d58541f3016b1da5c4c51cf12f5585">isTrackingSwipe</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a05ae450bba14864f0a0a539316fd2ba8">isPendingSwipeCheck</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        }</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160; </div>
<div class="line"><a name="l00301"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ae4fa9490358987743c2ef2de15bd6c67">  301</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#ae4fa9490358987743c2ef2de15bd6c67">DoTouchpadAxisChanged</a>(<span class="keywordtype">object</span> sender, ControllerInteractionEventArgs e)</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;        {</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;            <a class="code" href="class_panel_menu_controller.html#af94994bc3d40ed36e425b88d0010f5dc">ChangeAngle</a>(<a class="code" href="class_panel_menu_controller.html#a555348e374c44057bcc8f1a2b5b6eac6">CalculateAngle</a>(e));</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160; </div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#ad3d58541f3016b1da5c4c51cf12f5585">isTrackingSwipe</a>)</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;            {</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;                <a class="code" href="class_panel_menu_controller.html#a6e296ceba6355cee7df9ce151e22a309">touchEndPosition</a> = <span class="keyword">new</span> Vector2(e.touchpadAxis.x, e.touchpadAxis.y);</div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;            }</div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;        }</div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160; </div>
<div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a3cee8a2e5d975558f5822a0d08bc1d9c">  311</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a3cee8a2e5d975558f5822a0d08bc1d9c">DoTriggerPressed</a>(<span class="keywordtype">object</span> sender, ControllerInteractionEventArgs e)</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        {</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#a854f45e71ff4b35540c5e2963df5e23a">isGrabbed</a>)</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;            {</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;                <a class="code" href="class_panel_menu_controller.html#aa44a3951c2d0def087f572bc235f49ea">OnTriggerPressed</a>();</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;            }</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;        }</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160; </div>
<div class="line"><a name="l00319"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#af94994bc3d40ed36e425b88d0010f5dc">  319</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#af94994bc3d40ed36e425b88d0010f5dc">ChangeAngle</a>(<span class="keywordtype">float</span> angle, <span class="keywordtype">object</span> sender = <span class="keyword">null</span>)</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;        {</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a49e1e27760f55be8778e29e7fc69e74a">currentAngle</a> = angle;</div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;        }</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160; </div>
<div class="line"><a name="l00324"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#ab65289f66e52deef038d373dddb9b239">  324</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#ab65289f66e52deef038d373dddb9b239">CalculateSwipeAction</a>()</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;        {</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;            <a class="code" href="class_panel_menu_controller.html#a05ae450bba14864f0a0a539316fd2ba8">isPendingSwipeCheck</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160; </div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;            <span class="keywordtype">float</span> deltaTime = Time.time - <a class="code" href="class_panel_menu_controller.html#ac49cead88826e04e50b4dbb87c84b9c5">touchStartTime</a>;</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;            Vector2 swipeVector = <a class="code" href="class_panel_menu_controller.html#a6e296ceba6355cee7df9ce151e22a309">touchEndPosition</a> - <a class="code" href="class_panel_menu_controller.html#a1abe6fbae3a2e179bc2521068edeb0ac">touchStartPosition</a>;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;            <span class="keywordtype">float</span> velocity = swipeVector.magnitude / deltaTime;</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160; </div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;            <span class="keywordflow">if</span> ((velocity &gt; <a class="code" href="class_panel_menu_controller.html#a607e57996e6a88ddac7a5da85696f456">SwipeMinVelocity</a>) &amp;&amp; (swipeVector.magnitude &gt; <a class="code" href="class_panel_menu_controller.html#aa2a458734f7b687b8912aa7b277e4c09">SwipeMinDist</a>))</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;            {</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;                swipeVector.Normalize();</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;                <span class="keywordtype">float</span> angleOfSwipe = Vector2.Dot(swipeVector, <a class="code" href="class_panel_menu_controller.html#a49cfb69e35ce7f5326e29bf6a712daae">xAxis</a>);</div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;                angleOfSwipe = Mathf.Acos(angleOfSwipe) * Mathf.Rad2Deg;</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160; </div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;                <span class="comment">// Left / right</span></div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;                <span class="keywordflow">if</span> (angleOfSwipe &lt; <a class="code" href="class_panel_menu_controller.html#afb14d2676a1ce766d55f24204a966fb8">AngleTolerance</a>)</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;                {</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;                    <a class="code" href="class_panel_menu_controller.html#a4e456cd0210a2f8f7a6112ee2b750ac2">OnSwipeRight</a>();</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;                }</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;                <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((180.0f - angleOfSwipe) &lt; <a class="code" href="class_panel_menu_controller.html#afb14d2676a1ce766d55f24204a966fb8">AngleTolerance</a>)</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;                {</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;                    <a class="code" href="class_panel_menu_controller.html#a7c4332b4e93b1151a0a11abf9a254936">OnSwipeLeft</a>();</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;                }</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;                {</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;                    <span class="comment">// Top / bottom</span></div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;                    angleOfSwipe = Vector2.Dot(swipeVector, <a class="code" href="class_panel_menu_controller.html#ad87b6d13158a3024d1e24c574f2c2dbb">yAxis</a>);</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;                    angleOfSwipe = Mathf.Acos(angleOfSwipe) * Mathf.Rad2Deg;</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;                    <span class="keywordflow">if</span> (angleOfSwipe &lt; <a class="code" href="class_panel_menu_controller.html#afb14d2676a1ce766d55f24204a966fb8">AngleTolerance</a>)</div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;                    {</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;                        <a class="code" href="class_panel_menu_controller.html#a204815235faa1e20bcd94ac2debaacda">OnSwipeTop</a>();</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;                    }</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;                    <span class="keywordflow">else</span> <span class="keywordflow">if</span> ((180.0f - angleOfSwipe) &lt; <a class="code" href="class_panel_menu_controller.html#afb14d2676a1ce766d55f24204a966fb8">AngleTolerance</a>)</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;                    {</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;                        <a class="code" href="class_panel_menu_controller.html#af94bd7bc617ae10c3a2e2ec998419c2e">OnSwipeBottom</a>();</div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;                    }</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;                }</div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;            }</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;        }</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160; </div>
<div class="line"><a name="l00364"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a7c4332b4e93b1151a0a11abf9a254936">  364</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a7c4332b4e93b1151a0a11abf9a254936">OnSwipeLeft</a>()</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        {</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;            {</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;                <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a>.SwipeLeft(<a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>);</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;            }</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;        }</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160; </div>
<div class="line"><a name="l00372"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a4e456cd0210a2f8f7a6112ee2b750ac2">  372</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a4e456cd0210a2f8f7a6112ee2b750ac2">OnSwipeRight</a>()</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;        {</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;            {</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;                <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a>.SwipeRight(<a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>);</div>
<div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;            }</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;        }</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160; </div>
<div class="line"><a name="l00380"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a204815235faa1e20bcd94ac2debaacda">  380</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#a204815235faa1e20bcd94ac2debaacda">OnSwipeTop</a>()</div>
<div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;        {</div>
<div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;            {</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;                <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a>.SwipeTop(<a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>);</div>
<div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;            }</div>
<div class="line"><a name="l00386"></a><span class="lineno">  386</span>&#160;        }</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160; </div>
<div class="line"><a name="l00388"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#af94bd7bc617ae10c3a2e2ec998419c2e">  388</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#af94bd7bc617ae10c3a2e2ec998419c2e">OnSwipeBottom</a>()</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        {</div>
<div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;            {</div>
<div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;                <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a>.SwipeBottom(<a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>);</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;            }</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;        }</div>
<div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160; </div>
<div class="line"><a name="l00396"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#aa44a3951c2d0def087f572bc235f49ea">  396</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_panel_menu_controller.html#aa44a3951c2d0def087f572bc235f49ea">OnTriggerPressed</a>()</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        {</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a> != <span class="keyword">null</span>)</div>
<div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;            {</div>
<div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;                <a class="code" href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">currentPanelMenuItemController</a>.TriggerPressed(<a class="code" href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">interactableObject</a>);</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;            }</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;        }</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160; </div>
<div class="line"><a name="l00404"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a555348e374c44057bcc8f1a2b5b6eac6">  404</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="class_panel_menu_controller.html#a555348e374c44057bcc8f1a2b5b6eac6">CalculateAngle</a>(ControllerInteractionEventArgs e)</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        {</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;            <span class="keywordflow">return</span> e.touchpadAngle;</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;        }</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160; </div>
<div class="line"><a name="l00409"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#af1e46e6e5fe0cd0dcf5c194f8cc77137">  409</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="class_panel_menu_controller.html#af1e46e6e5fe0cd0dcf5c194f8cc77137">NormAngle</a>(<span class="keywordtype">float</span> currentDegree, <span class="keywordtype">float</span> maxAngle = 360)</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;        {</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;            <span class="keywordflow">if</span> (currentDegree &lt; 0) currentDegree = currentDegree + maxAngle;</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;            <span class="keywordflow">return</span> currentDegree % maxAngle;</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;        }</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160; </div>
<div class="line"><a name="l00415"></a><span class="lineno"><a class="line" href="class_panel_menu_controller.html#a911b6aeaa25f1a1070fe8cc695ba1de2">  415</a></span>&#160;        <span class="keyword">protected</span> <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_panel_menu_controller.html#a911b6aeaa25f1a1070fe8cc695ba1de2">CheckAnglePosition</a>(<span class="keywordtype">float</span> currentDegree, <span class="keywordtype">float</span> tolerance, <span class="keywordtype">float</span> targetDegree)</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        {</div>
<div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;            <span class="keywordtype">float</span> lowerBound = <a class="code" href="class_panel_menu_controller.html#af1e46e6e5fe0cd0dcf5c194f8cc77137">NormAngle</a>(currentDegree - tolerance);</div>
<div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;            <span class="keywordtype">float</span> upperBound = <a class="code" href="class_panel_menu_controller.html#af1e46e6e5fe0cd0dcf5c194f8cc77137">NormAngle</a>(currentDegree + tolerance);</div>
<div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160; </div>
<div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;            <span class="keywordflow">if</span> (lowerBound &gt; upperBound)</div>
<div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;            {</div>
<div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;                <span class="keywordflow">return</span> targetDegree &gt;= lowerBound || targetDegree &lt;= upperBound;</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;            }</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;            <span class="keywordflow">return</span> targetDegree &gt;= lowerBound &amp;&amp; targetDegree &lt;= upperBound;</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        }</div>
<div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;}</div>
<div class="ttc" id="aclass_panel_menu_controller_html"><div class="ttname"><a href="class_panel_menu_controller.html">PanelMenuController</a></div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00006">PanelMenuController.cs:7</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a008e386adb01e0db819fafbad17ae15e"><div class="ttname"><a href="class_panel_menu_controller.html#a008e386adb01e0db819fafbad17ae15e">PanelMenuController.DoTouchpadUntouched</a></div><div class="ttdeci">virtual void DoTouchpadUntouched(object sender, ControllerInteractionEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00295">PanelMenuController.cs:295</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a0320c1c2dcd726a87c22563d86a11ccf"><div class="ttname"><a href="class_panel_menu_controller.html#a0320c1c2dcd726a87c22563d86a11ccf">PanelMenuController.Update</a></div><div class="ttdeci">virtual void Update()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00125">PanelMenuController.cs:125</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a05ae450bba14864f0a0a539316fd2ba8"><div class="ttname"><a href="class_panel_menu_controller.html#a05ae450bba14864f0a0a539316fd2ba8">PanelMenuController.isPendingSwipeCheck</a></div><div class="ttdeci">bool isPendingSwipeCheck</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00036">PanelMenuController.cs:36</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a06c06859bf93ce6918ffa0cfef68bb3c"><div class="ttname"><a href="class_panel_menu_controller.html#a06c06859bf93ce6918ffa0cfef68bb3c">PanelMenuController.Initialize</a></div><div class="ttdeci">virtual void Initialize()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00153">PanelMenuController.cs:153</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a0a485010c19f62ac5f467db52d979933"><div class="ttname"><a href="class_panel_menu_controller.html#a0a485010c19f62ac5f467db52d979933">PanelMenuController.HideMenuImmediate</a></div><div class="ttdeci">virtual void HideMenuImmediate()</div><div class="ttdoc">The HideMenuImmediate method is used to immediately hide the menu.</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00084">PanelMenuController.cs:84</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a0b71c220d8a372c30e05488c9cbc1fe7"><div class="ttname"><a href="class_panel_menu_controller.html#a0b71c220d8a372c30e05488c9cbc1fe7">PanelMenuController.interactableObject</a></div><div class="ttdeci">GameObject interactableObject</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00027">PanelMenuController.cs:27</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a10c3beabee8f61691b11b59273f946a5"><div class="ttname"><a href="class_panel_menu_controller.html#a10c3beabee8f61691b11b59273f946a5">PanelMenuController.HandlePanelMenuItemControllerVisibility</a></div><div class="ttdeci">virtual void HandlePanelMenuItemControllerVisibility(VRTK_PanelMenuItemController targetPanelItemController)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00188">PanelMenuController.cs:188</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a157735605c51fb1011f3648b3f926a98"><div class="ttname"><a href="class_panel_menu_controller.html#a157735605c51fb1011f3648b3f926a98">PanelMenuController.OnDestroy</a></div><div class="ttdeci">virtual void OnDestroy()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00120">PanelMenuController.cs:120</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a1a04d799a0b139892461badd715d3dab"><div class="ttname"><a href="class_panel_menu_controller.html#a1a04d799a0b139892461badd715d3dab">PanelMenuController.UnbindControllerEvents</a></div><div class="ttdeci">virtual void UnbindControllerEvents()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00179">PanelMenuController.cs:179</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a1abe6fbae3a2e179bc2521068edeb0ac"><div class="ttname"><a href="class_panel_menu_controller.html#a1abe6fbae3a2e179bc2521068edeb0ac">PanelMenuController.touchStartPosition</a></div><div class="ttdeci">Vector2 touchStartPosition</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00031">PanelMenuController.cs:31</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a204815235faa1e20bcd94ac2debaacda"><div class="ttname"><a href="class_panel_menu_controller.html#a204815235faa1e20bcd94ac2debaacda">PanelMenuController.OnSwipeTop</a></div><div class="ttdeci">virtual void OnSwipeTop()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00380">PanelMenuController.cs:380</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a21e3e5580b4f87d2e4213b54b6334260"><div class="ttname"><a href="class_panel_menu_controller.html#a21e3e5580b4f87d2e4213b54b6334260">PanelMenuController.InitTweenMenuScale</a></div><div class="ttdeci">virtual void InitTweenMenuScale(bool show)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00216">PanelMenuController.cs:216</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a289ebce78a04bcf83f5a6cedc6542ae9"><div class="ttname"><a href="class_panel_menu_controller.html#a289ebce78a04bcf83f5a6cedc6542ae9">PanelMenuController.HideMenu</a></div><div class="ttdeci">virtual void HideMenu(bool force)</div><div class="ttdoc">The HideMenu method is used to hide the menu.</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00072">PanelMenuController.cs:72</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a38269c408a0849330925ebdd40d1e240"><div class="ttname"><a href="class_panel_menu_controller.html#a38269c408a0849330925ebdd40d1e240">PanelMenuController.CanvasScaleSize</a></div><div class="ttdeci">const float CanvasScaleSize</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00018">PanelMenuController.cs:18</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a3cee8a2e5d975558f5822a0d08bc1d9c"><div class="ttname"><a href="class_panel_menu_controller.html#a3cee8a2e5d975558f5822a0d08bc1d9c">PanelMenuController.DoTriggerPressed</a></div><div class="ttdeci">virtual void DoTriggerPressed(object sender, ControllerInteractionEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00311">PanelMenuController.cs:311</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a49cfb69e35ce7f5326e29bf6a712daae"><div class="ttname"><a href="class_panel_menu_controller.html#a49cfb69e35ce7f5326e29bf6a712daae">PanelMenuController.xAxis</a></div><div class="ttdeci">readonly Vector2 xAxis</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00029">PanelMenuController.cs:29</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a49e1e27760f55be8778e29e7fc69e74a"><div class="ttname"><a href="class_panel_menu_controller.html#a49e1e27760f55be8778e29e7fc69e74a">PanelMenuController.currentAngle</a></div><div class="ttdeci">float currentAngle</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00034">PanelMenuController.cs:34</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a4e456cd0210a2f8f7a6112ee2b750ac2"><div class="ttname"><a href="class_panel_menu_controller.html#a4e456cd0210a2f8f7a6112ee2b750ac2">PanelMenuController.OnSwipeRight</a></div><div class="ttdeci">virtual void OnSwipeRight()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00372">PanelMenuController.cs:372</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a555348e374c44057bcc8f1a2b5b6eac6"><div class="ttname"><a href="class_panel_menu_controller.html#a555348e374c44057bcc8f1a2b5b6eac6">PanelMenuController.CalculateAngle</a></div><div class="ttdeci">virtual float CalculateAngle(ControllerInteractionEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00404">PanelMenuController.cs:404</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a5de1501c6a368fb64309f251af5a8123"><div class="ttname"><a href="class_panel_menu_controller.html#a5de1501c6a368fb64309f251af5a8123">PanelMenuController.DoTouchpadPress</a></div><div class="ttdeci">virtual void DoTouchpadPress(object sender, ControllerInteractionEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00278">PanelMenuController.cs:278</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a607e57996e6a88ddac7a5da85696f456"><div class="ttname"><a href="class_panel_menu_controller.html#a607e57996e6a88ddac7a5da85696f456">PanelMenuController.SwipeMinVelocity</a></div><div class="ttdeci">const float SwipeMinVelocity</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00023">PanelMenuController.cs:23</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a65f2cdb685dc61a55caf8cad11e24706"><div class="ttname"><a href="class_panel_menu_controller.html#a65f2cdb685dc61a55caf8cad11e24706">PanelMenuController.topPanelMenuItemController</a></div><div class="ttdeci">VRTK_PanelMenuItemController topPanelMenuItemController</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00015">PanelMenuController.cs:15</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a6800bf69f844618b57bef03aea734d07"><div class="ttname"><a href="class_panel_menu_controller.html#a6800bf69f844618b57bef03aea734d07">PanelMenuController.isShown</a></div><div class="ttdeci">bool isShown</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00038">PanelMenuController.cs:38</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a6b1f79dcbb7634f2072ae3cfea78bfb3"><div class="ttname"><a href="class_panel_menu_controller.html#a6b1f79dcbb7634f2072ae3cfea78bfb3">PanelMenuController.tweenMenuScaleRoutine</a></div><div class="ttdeci">Coroutine tweenMenuScaleRoutine</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00039">PanelMenuController.cs:39</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a6e296ceba6355cee7df9ce151e22a309"><div class="ttname"><a href="class_panel_menu_controller.html#a6e296ceba6355cee7df9ce151e22a309">PanelMenuController.touchEndPosition</a></div><div class="ttdeci">Vector2 touchEndPosition</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00032">PanelMenuController.cs:32</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a7c4332b4e93b1151a0a11abf9a254936"><div class="ttname"><a href="class_panel_menu_controller.html#a7c4332b4e93b1151a0a11abf9a254936">PanelMenuController.OnSwipeLeft</a></div><div class="ttdeci">virtual void OnSwipeLeft()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00364">PanelMenuController.cs:364</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a854f45e71ff4b35540c5e2963df5e23a"><div class="ttname"><a href="class_panel_menu_controller.html#a854f45e71ff4b35540c5e2963df5e23a">PanelMenuController.isGrabbed</a></div><div class="ttdeci">bool isGrabbed</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00037">PanelMenuController.cs:37</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a8f4101f95393f2ad29844619e5de1847"><div class="ttname"><a href="class_panel_menu_controller.html#a8f4101f95393f2ad29844619e5de1847">PanelMenuController.TweenMenuScale</a></div><div class="ttdeci">virtual IEnumerator TweenMenuScale(bool show)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00228">PanelMenuController.cs:228</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a911b6aeaa25f1a1070fe8cc695ba1de2"><div class="ttname"><a href="class_panel_menu_controller.html#a911b6aeaa25f1a1070fe8cc695ba1de2">PanelMenuController.CheckAnglePosition</a></div><div class="ttdeci">virtual bool CheckAnglePosition(float currentDegree, float tolerance, float targetDegree)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00415">PanelMenuController.cs:415</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_a98881472d39ee683eb573358d68119a0"><div class="ttname"><a href="class_panel_menu_controller.html#a98881472d39ee683eb573358d68119a0">PanelMenuController.BindControllerEvents</a></div><div class="ttdeci">virtual void BindControllerEvents()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00170">PanelMenuController.cs:170</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_aa2a458734f7b687b8912aa7b277e4c09"><div class="ttname"><a href="class_panel_menu_controller.html#aa2a458734f7b687b8912aa7b277e4c09">PanelMenuController.SwipeMinDist</a></div><div class="ttdeci">const float SwipeMinDist</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00022">PanelMenuController.cs:22</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_aa44a3951c2d0def087f572bc235f49ea"><div class="ttname"><a href="class_panel_menu_controller.html#aa44a3951c2d0def087f572bc235f49ea">PanelMenuController.OnTriggerPressed</a></div><div class="ttdeci">virtual void OnTriggerPressed()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00396">PanelMenuController.cs:396</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ab65289f66e52deef038d373dddb9b239"><div class="ttname"><a href="class_panel_menu_controller.html#ab65289f66e52deef038d373dddb9b239">PanelMenuController.CalculateSwipeAction</a></div><div class="ttdeci">virtual void CalculateSwipeAction()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00324">PanelMenuController.cs:324</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ab8fd549a3cb569ca4c970d6abfbb33bd"><div class="ttname"><a href="class_panel_menu_controller.html#ab8fd549a3cb569ca4c970d6abfbb33bd">PanelMenuController.ShowMenu</a></div><div class="ttdeci">virtual void ShowMenu()</div><div class="ttdoc">The ShowMenu method is used to show the menu.</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00059">PanelMenuController.cs:59</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ab9b4d24481ed0ebaaffb5395d7406ebd"><div class="ttname"><a href="class_panel_menu_controller.html#ab9b4d24481ed0ebaaffb5395d7406ebd">PanelMenuController.DoInteractableObjectIsUngrabbed</a></div><div class="ttdeci">virtual void DoInteractableObjectIsUngrabbed(object sender, InteractableObjectEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00263">PanelMenuController.cs:263</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ac4339e248842a4eb13b4e9ca1bef727f"><div class="ttname"><a href="class_panel_menu_controller.html#ac4339e248842a4eb13b4e9ca1bef727f">PanelMenuController.controllerEvents</a></div><div class="ttdeci">VRTK_ControllerEvents controllerEvents</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00025">PanelMenuController.cs:25</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ac49cead88826e04e50b4dbb87c84b9c5"><div class="ttname"><a href="class_panel_menu_controller.html#ac49cead88826e04e50b4dbb87c84b9c5">PanelMenuController.touchStartTime</a></div><div class="ttdeci">float touchStartTime</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00033">PanelMenuController.cs:33</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ad28e4591512ba9d9b0b8209ef7e3e3c9"><div class="ttname"><a href="class_panel_menu_controller.html#ad28e4591512ba9d9b0b8209ef7e3e3c9">PanelMenuController.ToggleMenu</a></div><div class="ttdeci">virtual void ToggleMenu()</div><div class="ttdoc">The ToggleMenu method is used to show or hide the menu.</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00044">PanelMenuController.cs:44</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ad3d58541f3016b1da5c4c51cf12f5585"><div class="ttname"><a href="class_panel_menu_controller.html#ad3d58541f3016b1da5c4c51cf12f5585">PanelMenuController.isTrackingSwipe</a></div><div class="ttdeci">bool isTrackingSwipe</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00035">PanelMenuController.cs:35</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ad87b6d13158a3024d1e24c574f2c2dbb"><div class="ttname"><a href="class_panel_menu_controller.html#ad87b6d13158a3024d1e24c574f2c2dbb">PanelMenuController.yAxis</a></div><div class="ttdeci">readonly Vector2 yAxis</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00030">PanelMenuController.cs:30</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ad9db8f5e9be93fa1d8be6ba6f70c7815"><div class="ttname"><a href="class_panel_menu_controller.html#ad9db8f5e9be93fa1d8be6ba6f70c7815">PanelMenuController.DoInteractableObjectIsGrabbed</a></div><div class="ttdeci">virtual void DoInteractableObjectIsGrabbed(object sender, InteractableObjectEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00253">PanelMenuController.cs:253</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ada7144822c4d73ec792b22c274cb3088"><div class="ttname"><a href="class_panel_menu_controller.html#ada7144822c4d73ec792b22c274cb3088">PanelMenuController.DoTouchpadTouched</a></div><div class="ttdeci">virtual void DoTouchpadTouched(object sender, ControllerInteractionEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00288">PanelMenuController.cs:288</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_add5762c5009f401efa1704e842f35eaa"><div class="ttname"><a href="class_panel_menu_controller.html#add5762c5009f401efa1704e842f35eaa">PanelMenuController.Awake</a></div><div class="ttdeci">virtual void Awake()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00095">PanelMenuController.cs:95</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ae3ab100e8a2908571a566cdb500b7203"><div class="ttname"><a href="class_panel_menu_controller.html#ae3ab100e8a2908571a566cdb500b7203">PanelMenuController.canvasObject</a></div><div class="ttdeci">GameObject canvasObject</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00028">PanelMenuController.cs:28</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_ae4fa9490358987743c2ef2de15bd6c67"><div class="ttname"><a href="class_panel_menu_controller.html#ae4fa9490358987743c2ef2de15bd6c67">PanelMenuController.DoTouchpadAxisChanged</a></div><div class="ttdeci">virtual void DoTouchpadAxisChanged(object sender, ControllerInteractionEventArgs e)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00301">PanelMenuController.cs:301</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_aed927f6ed2f6f8cfd19b63cde474d299"><div class="ttname"><a href="class_panel_menu_controller.html#aed927f6ed2f6f8cfd19b63cde474d299">PanelMenuController.rotateTowards</a></div><div class="ttdeci">GameObject rotateTowards</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00011">PanelMenuController.cs:11</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_af1e46e6e5fe0cd0dcf5c194f8cc77137"><div class="ttname"><a href="class_panel_menu_controller.html#af1e46e6e5fe0cd0dcf5c194f8cc77137">PanelMenuController.NormAngle</a></div><div class="ttdeci">virtual float NormAngle(float currentDegree, float maxAngle=360)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00409">PanelMenuController.cs:409</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_af53194cd0fd3b269051a7e39955ec140"><div class="ttname"><a href="class_panel_menu_controller.html#af53194cd0fd3b269051a7e39955ec140">PanelMenuController.currentPanelMenuItemController</a></div><div class="ttdeci">VRTK_PanelMenuItemController currentPanelMenuItemController</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00026">PanelMenuController.cs:26</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_af5d55e46e078d51f731d215e4cd31f1f"><div class="ttname"><a href="class_panel_menu_controller.html#af5d55e46e078d51f731d215e4cd31f1f">PanelMenuController.Start</a></div><div class="ttdeci">virtual void Start()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00101">PanelMenuController.cs:101</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_af94994bc3d40ed36e425b88d0010f5dc"><div class="ttname"><a href="class_panel_menu_controller.html#af94994bc3d40ed36e425b88d0010f5dc">PanelMenuController.ChangeAngle</a></div><div class="ttdeci">virtual void ChangeAngle(float angle, object sender=null)</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00319">PanelMenuController.cs:319</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_af94bd7bc617ae10c3a2e2ec998419c2e"><div class="ttname"><a href="class_panel_menu_controller.html#af94bd7bc617ae10c3a2e2ec998419c2e">PanelMenuController.OnSwipeBottom</a></div><div class="ttdeci">virtual void OnSwipeBottom()</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00388">PanelMenuController.cs:388</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_afb14d2676a1ce766d55f24204a966fb8"><div class="ttname"><a href="class_panel_menu_controller.html#afb14d2676a1ce766d55f24204a966fb8">PanelMenuController.AngleTolerance</a></div><div class="ttdeci">const float AngleTolerance</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00021">PanelMenuController.cs:21</a></div></div>
<div class="ttc" id="aclass_panel_menu_controller_html_afba7315331ba54e32662dacda8afa961"><div class="ttname"><a href="class_panel_menu_controller.html#afba7315331ba54e32662dacda8afa961">PanelMenuController.zoomScaleMultiplier</a></div><div class="ttdeci">float zoomScaleMultiplier</div><div class="ttdef"><b>Definition:</b> <a href="_panel_menu_controller_8cs_source.html#l00013">PanelMenuController.cs:13</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
